<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('role/index');?>' ><em>角色管理</em></a><span>|</span><a href='javascript:;' class="on"><em>编辑角色</em></a>    </div>
</div>
<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#rolename").formValidator({onshow:"请输入角色名称",onfocus:"角色名称不能为空。"}).inputValidator({min:1,max:999,onerror:"角色名称不能为空。"});
})
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="<?php echo U('role/edit');?>" method="post" id="myform">
<input type="hidden" name="roleid" value="<?php echo $role['id'];?>">
<table width="100%" class="table_form contentWrap">
<tr>
<td>角色名称</td> 
<td><input type="text" name="info[rolename]" value="<?php echo $role['rolename'];?>" class="input-text" id="rolename"/></td>
</tr>
<tr>
<td>角色描述</td>
<td><textarea name="info[description]" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:500px;"><?php echo $role['description'];?></textarea></td>
</tr>
<tr>
<td>是否启用</td>
<td><input type="radio" name="info[display]" value="1" <?php if($role['display']==1)echo 'checked';?>/> 启用  <input type="radio" name="info[display]" value="0" <?php if($role['display']==0)echo 'checked';?>/>禁止</td>
</tr>
<tr>
<td>排序</td>
<td><input type="text" name="info[listorder]" size="3" class="input-text" value="<?php echo $role['listorder'];?>"/></td>
</tr>
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" class="button" value="提交" class="button"/>
</form>
</div>
</div>
</body>
</html>